package neu.soft.controller;

import neu.soft.entity.NormalOrder;
import neu.soft.vo.ResultBean;
import neu.soft.service.impl.GoodsTransferOrderServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@CrossOrigin
@RequestMapping("/goodsTransferOrder")
public class GoodsTransferOrderController {
    @Autowired
    private GoodsTransferOrderServiceImpl goodsTransferOrderService;
    @RequestMapping("/autoCreateGoodsTransferOrder")
    public ResultBean autoCreateGoodsTransferOrder(Map<String,Object> map) throws Exception {
        return goodsTransferOrderService.autoCreateGoodsTransferOrder(map);
    }
    @RequestMapping("/createGoodsTransferOrder")
    public ResultBean createGoodsTransferOrder(@RequestBody Map<String,Object>map)throws Exception{
        return goodsTransferOrderService.createGoodsTransferOrder(map);
    }
//    @RequestMapping("/findAllbound")
//    public ResultBean findAllBound(){
//        return goodsTransferOrderService.findAllBound();
//    }

}